package com.example.springboot.service;

import com.example.springboot.common.Result;
import com.example.springboot.entity.CComment;
import com.example.springboot.entity.SComment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;

public interface ISCommentService extends IService<SComment> {

    List<SComment> getCommentsBySolution(Integer solutionId);
    int getCount(Integer solutionId);
    SComment insert(SComment sComment) throws IOException;
    boolean deleteOne(Integer id);

    boolean deleteBySolution(Integer solutionId);

    Result adminGet(int pageNum, int pageSize, String content);

    Result processComment(Integer id);
}
